<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/tpxbb/Public/css/styles.css" />
 </head>
 
<body>
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">
<tr >
 <th><a href="<?php echo U('order/index');?>">首页</a></th>
 <th><a href="<?php echo U('order/list');?>">最新数据</a></th>
 <th><a href="<?php echo U('order/getdata');?>"> 更新闪送数据</a></th>
 <th><a href="<?php echo U('order/dealdata');?>"> 处理闪送数据</a></th>
 <th> 地图配置</th> 
  <th><a href="<?php echo U('wm/baidu');?>">上传百度数据</a></th>
</tr>
</table>
</br></br>
<!-- 提交文件上传 -->

新建店面：</br>

<form action="/tpxbb/shop/dm"  method="post" >
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">

<tr>
<td>店面id：</td><td><input type="text" name="dmid"  value=""/> </td>
</tr>
<tr>
<td>店面名称：</td><td><input type="text" name="dmname"  value=""/> </td>
</tr>
<tr>
<td>所属平台：</td><td><select name="ptid" >
                              <option value="WMBAIDU">百度外卖</option>
                              <option value="WMMEITUAN">美团外卖</option>
                           </select> </td>
</tr>
<tr>
<td>店面客户经理：</td><td><input type="text" name="manager" value="" /> </td>
</tr>
<tr>
<td>手机：</td><td><input type="text" name="mobile" /> </td>
</tr>
<tr>
<td>地址：</td><td><input type="text" name="address" /> </td>
</tr>
<tr>
<td>网址：</td><td><input type="text" name="url" /> </td>
</tr>
<tr>
<td>账号：</td><td><input type="text" name="user" /> </td>
</tr>
<tr>
<td>密码：</td><td><input type="text" name="password" /> </td>
</tr>
<tr>
<td>cookie：</td><td><input type="text" name="cookie" /> </td>
</tr>
<tr>
<td>备注：</td><td><input type="text" name="memo" /> </td>
</tr>
<tr>
<td></td><td><input type="submit" value="新增" > </td>
</tr>


</table>
</form>

平台列表：</br>
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">
<tr >
 <td>序号 </td><td>店面id</td><td> 店面名称 </td><td>所属平台</td><td>店面客户经理</td>
 <td> 手机  </td><td>地址</td><td>网址</td>
  <td>账号</td><td>密码</td><td>cookie</td><td>备注</td> <td>修改时间</td><td>操作</td>
</tr>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$arr): $mod = ($i % 2 );++$i;?><tr>
 <td><?php echo ($i); ?> </td>
 <td><?php echo ($arr["dmid"]); ?></td>
 <td><?php echo ($arr["dmname"]); ?></td>
  <td><?php echo ($arr["ptid"]); ?></td>
 <td> <?php echo ($arr["manager"]); ?></td>
 <td> <?php echo ($arr["mobile"]); ?></td> 
  <td> <?php echo ($arr["address"]); ?></td> 
  <td> <?php echo ($arr["url"]); ?></td>
  <td> <?php echo ($arr["user"]); ?></td> 
  <td> <?php echo ($arr["password"]); ?></td> 
  <td> <?php echo ($arr["cookie"]); ?></td> 
  <td> <?php echo ($arr["memo"]); ?></td> 
  <td> <?php echo ($arr["date"]); ?></td> 
   <td><a href="<?php echo U('shop/dmupdate',array('id'=>$arr[id]));?>">修改</a></td> 
    <td><a href="<?php echo U('shop/dm',array('op'=>'del','id'=>$arr[id]));?>"> 删除</a></td> 
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>

</body>
</html>